package club.twelveblog.tblog.common.vo;

import club.twelveblog.tblog.common.enums.ExceptionEnum;
import lombok.Data;

/**
 * 通用异常结果集
 */
@Data
public class ExceptionResult {
    private int code;
    private String message;
    private Long timestamp;
    public ExceptionResult(ExceptionEnum em){
        this.code =em.getCode();
        this.message =em.getMsg();
        this.timestamp=System.currentTimeMillis();
    }
}
